package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.InDepotBill;
import com.weixing.mall.provider.model.dto.InDepotChgIsFinishDto;
import com.weixing.mall.provider.model.query.InDepotBillQuery;
import com.weixing.mall.provider.model.vo.InDepotBillListVo;
import com.weixing.mall.provider.model.vo.InDepotBillVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 仓库模块-入库单 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
@Repository
public interface InDepotBillMapper extends BaseMapper<InDepotBill> {

    IPage<InDepotBillListVo> selectOfPage(@Param("pg") Page page,@Param("qs") InDepotBillQuery inDepotBillQuery);

    void inDepotChgIsFinish(@Param("qs")InDepotChgIsFinishDto inDepotChgIsFinishDto);

    InDepotBillVo getInDepotBillById(Long id);

    InDepotBillVo findMaxId();
}
